<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${rc.contextPath}/css/website.css" type="text/css" />
<script type="text/javascript" src="${rc.contextPath}/js/jquery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="${rc.contextPath}/js/page.js"></script>
<script type="text/javascript" src="${rc.contextPath}/js/lightBox.js"></script>
<script type="text/javascript">
	var toStatic = {
			website:function(){
				_waiting._show("页面正在生成中，请耐心等待。。。");
				var siteId = $("#site").val();;
				$.ajax({
					url:"toStaticPage",
					type:"post",
					async:false,
					data:{"siteId":siteId},
					success:function(data){
						$("#source").text("网站静态化成功！！！");
						_waiting._hide();
					},
					error:function(data){
						_waiting._hide();
						$.growlUI('页面生产失败');
					}
				});
			}
	};
</script>
<link>
<title>网站转静态</title>
</head>
<body >
	<div class="list">
		<div class="content" align="center" style=" padding:0 4px;">
			<div id="" class="tools">
				<div class="left">
					<a class="${(usermenu.freadonly=='w'||usermenu.freadonly=='wc')?'a':'a1'}" href="javascript:void(0);" id="addWebsite" onclick="${(usermenu.freadonly=='w'||usermenu.freadonly=='wc')?'toStatic.website()':''}">
						<img src="${rc.contextPath}/images/gif_45_085.gif" width="20" height="20">
						<b>生成静态页面&nbsp;</b></a>
				</div>
				<div class="clear"></div>
			</div>
			<div class="table" style="font-size: 21px;border: 1px solid #ccc; text-align: left; height: 90%;word-break:break-all !important; overflow-x:hidden;overflow-y: outo;">
				<div style="font-size:16px;border: 0px solid #ccc; text-align: left; height: 30px;word-break:break-all !important; overflow-x:hidden;overflow-y: outo;">
					&nbsp;&nbsp;&nbsp;请选择要静态化的网站：
					<select name="site" id="site">
						<c:forEach items="${website}" var="site">
							<option value="${site.id}">${site.ftitle}</option>
						</c:forEach>
					</select>
				</div>
				&nbsp;&nbsp;&nbsp;&nbsp;网站生成静态页面时，可能需要一定的时间，请慎重操作！如不是急需跟新的内容，系统会在每天凌晨自行对所有网站信息进行静态化！如需手动生成静态页面，请耐心等待。。。静态化完，请同步网站资源！
				<div id="source" style="font-size:16px;border: 1px solid #ccc; text-align: left; height: 70%;word-break:break-all !important; overflow-x:hidden;overflow-y: outo;">
					提示区!
				</div>
			</div>
		</div>
	</div>
	
</body>
</html>